% author : Lei Yinghaonan
% Creation Date : 2021.11.26
% Last Date : 2021.11.28
% brief : Judge 2d or 3d of unstruct grid.

function nDim = InitStructDim(mesh)
if(mesh.iDimensions(3) == 1)
    nDim = 2;
elseif(mesh.iDimensions(3) > 1)
    nDim = 3;
else
    error("error on CalcStructFace of dim");
end